package com.hzp.micromall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzp.micromall.product.dto.PmsProductCategoryWithChildrenItem;
import com.hzp.micromall.product.entity.PmsProductCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author houzipeng
 * @Date 2022/2/26 14:23
 * @Version 1.0
 */
@Mapper
public interface PmsProductCategoryDao extends BaseMapper<PmsProductCategory> {
    /**
     * 获取商品分类及其子分类
     */
    List<PmsProductCategoryWithChildrenItem> listWithChildren();
}
